import request from '@/router/axios'

export function giftPayDetails(data) {
    return request({
        url: '/sms-api/sms/gift/giftPayDetails',
        method: 'get',
        params: data
    })
}

// ----- 礼品卷 -------
export function giftPage(data) {
    return request({
        url: '/sms-api/sms/gift/giftPage',
        method: 'get',
        params: data
    })
}

export function addGift(data) {
    return request({
        url: '/sms-api/sms/gift/addGift',
        method: 'post',
        data: data
    })
}

export function accordStoreIdQuery(data) {
    return request({
        url: '/pms-api/pms/product/accordStoreIdQuery',
        method: 'get',
        params: data
    })
}

export function giftDetails(data) {
    return request({
        url: '/sms-api/sms/gift/giftDetails',
        method: 'get',
        params: data
    })
}

export function giftProduct(data) {
    return request({
        url: '/sms-api/sms/gift/giftProduct',
        method: 'get',
        params: data
    })
}

// -------- 优惠券 ---------
export function couponPage(data) {
    return request({
        url: '/sms-api/sms/coupon/operate/get/page',
        method: 'get',
        params: data
    })
}

// -------- 会员列表 ---------
export function memberList(data) {
    return request({
        url: '/ums-api/ums/member/memberList',
        method: 'get',
        params: data
    })
}
